<?php
namespace app\common\validate;
use think\Validate;
class Goods extends Validate
{
    protected $rule =   [
        'title|名称'  => 'require',
        'price|价格'   => 'require',
        'vip_price|会员价'   => 'require',
    ];

    protected $msg  =   [
        'title.require' => '名称必须',
        'price'   => '价格必须',
        'vip_price'   => '会员价格必须', 
    ];


}